
<head><meta http-equiv="refresh" content="3; url=http://localhost/fang/admin/login/login.html">
<?php  header('Content-type: text/html; charset=utf-8');
$mysql_server_name = "localhost";
$mysql_username = "root";
$mysql_password = "root";
$mysql_database = "db_shop";

$operator_id = $_POST['id'];$password=$_POST['password'];$name = $_POST['name'];$gender=$_POST['sex'];$document_id=$_POST['document1'];
$telphone=$_POST['telphone'];
$conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_password);
$sql = "INSERT INTO `hotel`.`operator` (`operator_id`, `password`,`name`,`gender`,`document_id`,`telphone`) VALUES ('$operator_id','$password', '$name','$gender', '$document_id', '$telphone')";
  mysql_query ("set names 'utf8'");
    mysql_select_db($mysql_database);
   $result=mysql_query($sql);
   
   if($result == "")
   echo "出现错误,注册失败";
    else
	{
    echo '注册成功';
    }
/*	
	 
	*/
?>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><body>
</body>
</html>
